package com.yztc.ui.classifydetail;

import android.content.Context;

import com.yztc.base.IModle;
import com.yztc.base.IPresenter;
import com.yztc.base.IView;
import com.yztc.bean.classifydetail.ClassifyDetailBean;
import com.yztc.bean.classifydetail.ClassifyDetailHeaderActlistBean;
import com.yztc.bean.classifydetail.ClassifyDetailHeaderBean;
import com.yztc.bean.classifydetail.ClassifyDetailHeaderSecondlevelBean;
import com.yztc.bean.classifydetail.ClassifyProductListBean;

import java.util.List;
import java.util.Map;

/**
 * Created by MengLingzhang on 2016/10/10.
 */
public class ClassifyDetailContract {

    public interface View extends IView {
        public void OnGetVerticalClassifyDetailHeaderBean(ClassifyDetailHeaderBean classifyDetailHeaderBeen);
        public void OnGetVerticalClassifyDetailHeaderActlistBean(List<ClassifyDetailHeaderActlistBean> classifyDetailHeaderActlistBeen);
        public void OnGetVerticalClassifyDetailHeaderSecondlevelBean(List<ClassifyDetailHeaderSecondlevelBean> classifyDetailHeaderSecondlevelBeen);

        public void onGetVerticalClassifyProductListBean(List<ClassifyProductListBean> classifyProductListBeen);

        public void onGetVerticalFailed(Throwable error);
    }

    public interface Modle extends IModle {
        public void getVerticalClassifyDetailBean(String baseUrl, Map<String,String> map, OnLoadListener loadListener);

        public void getVerticalClassifyDetailHeaderBean(String baseUrl,int id,OnLoadListenerHeader loadListenerHeader);
    }

    public interface Presenter extends IPresenter {
        public void getVerticalClassifyProductListBean(Context context);

        public void getVerticalClassifyDetailHeaderBean(Context context);
    }

    public interface OnLoadListener {
        public void onSuccess(ClassifyDetailBean classifyDetailBean);
        public void onFailure(Throwable e);
    }
    public interface OnLoadListenerHeader {
        public void onSuccess(ClassifyDetailHeaderBean ClassifyDetailHeaderBean);
        public void onFailure(Throwable e);
    }
}
